import pytest

# 实现一个Fixture，用于预置产品信息
@pytest.fixture(scope="function")
def add_shop():
    """
    :return:
    """
    data={
        "xingYeFenLei":"QY_SX_001",
        "keHuBianMa":"45849583",
        "keHuShuXing":"10",
        "keHuZhuangTai":"10",
        "zhongWenQch":"如图水电费苦上加苦",
        "zhuJiMa":"753735",
        "yingYeZhiZhao":"123313",
        "diZhi":"南口南234号",
        "zhuLianXiRen":"阿斯顿",
        "shouJi":"15855478524",
    }
    yield data
    # 正常来讲此处写删除接口，以下只是删除变量
    if data is not None:
        del data
@pytest.fixture(scope="function")
def add_ku():
    """
    :return:
    """
    data={
        "createBy":"阿达大大",
        "createDate":"2025-08-25",
        "rfidType":"asd",
        "rfidBuseno":"12211",
        "rfidId1":"1",
        "rfidId2":"1",
        "rfidId3":"1",
    }
    yield data
    if data is not None:
        del data